package top.ajunnihao.core.util.resp;

/**
 * TODO 响应状态码枚举
 *
 * @author AJun
 * @version 1.0.0
 * @date 2020/5/15
 */
public enum CodeEnum {

    SUCCESS(true, "success"),
    FAIL(false, "failure");

    private final Boolean success;
    private final String msg;

    CodeEnum(Boolean success, String msg) {
        this.success = success;
        this.msg = msg;
    }

    public Boolean getSuccess() {
        return success;
    }


    public String getMsg() {
        return msg;
    }

}
